﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BCGC.BLL.Helper;
using BCGC.BLL.BusinessObject.UserAccount;
using Jalal.Library.Utility;

public partial class ForgotPassword : PublicBasePage
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Recover_Click(Object sender, EventArgs e)
    {
        if (SiteUser.SendPasswordRecoveryMail(Security.BindStringInput(tbxUsername.Text,
            SecurityLevel.Three)))
        {
            uccResponse.SetSuccessMessage("A mail has been sent in your email address with further instruction for recovering password");
        }
        else
        {
            uccResponse.SetFailMessage("There is no such username in our database");
        }
    }
}
